import moment from 'moment';

export const dateFormat = (date: number|string, type: string = 'YYYY-MM-DD'): string => {
    return moment(date).format('YYYY-MM-DD')
}